package com.yloveg.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yloveg.dao.PaymentConfigureMapper;
import com.yloveg.entity.PaymentConfigure;
import com.yloveg.service.PaymentConfigureService;

@Service
public class PaymentConfigureServiceImpl implements PaymentConfigureService {
	
    @Autowired
    private PaymentConfigureMapper paymentConfigureMapper;

	@Override
	public int insert(PaymentConfigure record) {
		// TODO Auto-generated method stub
		record.setCreateDate(new Date());
		record.setState(1);
		return paymentConfigureMapper.insert(record);
	}

	@Override
	public int update(PaymentConfigure record) {
		// TODO Auto-generated method stub
		record.setUpdateDate(new Date());
		return paymentConfigureMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public PaymentConfigure selectByPrimary(PaymentConfigure record) {
		// TODO Auto-generated method stub
		return paymentConfigureMapper.selectByPrimary(record);
	}

	



 


}
